const Redis = require('ioredis');
const redis = new Redis(6379, '172.17.150.250', { password: 'root' });
redis.on('error', err => {
  if (err) {
    console.log('Redis 连接错误');
    redis.quit();
  }
});

redis.on('ready', () => {
  console.log('redis链接成功');
});

module.exports.redis = redis;
